package cn.tedu.logistics.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import cn.tedu.logistics.bean.Manager;
import cn.tedu.logistics.bean.indexInfo;

@Mapper
public interface ManagerDao extends BaseMapper<Manager>{
	//通过管理员帐号查询密码
	Manager selectByName(String admin);
	//通过管理员帐号修改密码
	void updatePWD(@Param("admin")String admin,@Param("PWD")String PWD);	
	//显示所有门店信息
	@Select("select shop_id,shop_name,shop_phone,create_time from shop")
	List<indexInfo> selectInfo();
}
